<!--<?php
print<<<EF
-->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="templates/msystem/ljy.css" rel="stylesheet" type="text/css" />
<link href="ljy.css" rel="stylesheet" type="text/css" />
</head>

<base target="_self" />
<body style="text-align:left">
<!--
EF;
if($opt=='user')
{
print<<<EF
-->
<div id="toppath">用户ip范围管理</div>
<div style="padding:5px;"><a href="tracker_msg.inc.php?action=add&amp;table=iprange&amp;opt=user&amp;iprange=">
添加用户ip范围</a></div>

<table style=" float:left;" width="100%" border="0" cellpadding="3" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <th width="30%" align="center" valign="middle" bgcolor="#F0F0F0">ip范围</th>
    <th width="15%" align="center" valign="middle" bgcolor="#F0F0F0">修改</th>
    <th width="15%" align="center"valign="middle" bgcolor="#F0F0F0">删除</th>
  </tr>
<!--
EF;
foreach($trackerlist as $list)
{
print<<<EF
-->
  <tr>
    <td align="center" valign="middle"><a href="tracker_msg.inc.php?action=edit&amp;table=iprange&amp;opt=user&amp;iprange={$list[iprange]}">$list[iprange]</a></td>
	<td align="center" valign="middle"><a href="tracker_msg.inc.php?action=edit&amp;table=iprange&amp;opt=user&amp;iprange={$list[iprange]}">修改</a></td>
    <td align="center" valign="middle"><a href="tracker_msg.inc.php?action=delete&amp;table=iprange&amp;opt=user&amp;iprange={$list[iprange]}">删除</a></td>
  </tr>
<!--
EF;
}
print<<<EF
-->
</table>
<!--
EF;
}else
{
$sever=explode(':',$dsdbhost);
print<<<EF
-->
<form name="form1" method="post" action="mysqlcontrol.inc.php">
<input type="hidden" name="action" value="edit" /> 
<table style=" float:left;" width="100%" border="0" cellpadding="3" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
<th align="center" valign="middle" bgcolor="#F0F0F0">服务器信息</th>
<th align="center" valign="middle" bgcolor="#F0F0F0"></th>
  </tr>
  <tr>
<td width="30%" align="center" valign="middle" bgcolor="#F0F0F0">ip地址</td>
<td width="30%" align="center" valign="middle"><input class="inputtext" type="text" name="ip" value="$sever[0]"  /></td>
  </tr>
  <tr>
    <td width="15%" align="center" valign="middle" bgcolor="#F0F0F0">端口号</td>
    <td width="15%" align="center" valign="middle"><input class="inputtext" type="text" name="port" value="$sever[1]"  /></td>
</tr>
  <tr>
	<td width="15%" align="center" valign="middle" bgcolor="#F0F0F0">用户名</td>
	<td width="15%" align="center"valign="middle"><input class="inputtext" type="text" name="username" value="$dsdbuser"  /></td>
	</tr>
  <tr>
	<td width="15%" align="center" valign="middle" bgcolor="#F0F0F0">密码</td>
	<td width="15%" align="center"valign="middle"><input class="inputtext" type="password" name="pwd" value="$dsdbpw"  /></td>
	</tr>
  <tr>
    <td width="15%" align="center"valign="middle" bgcolor="#F0F0F0">数据库名</td>
	<td width="15%" align="center"valign="middle"><input class="inputtext" type="text" name="dbname" value="$dsdbname"  /></td>
	</tr>
</table>
   <div id="pagediv" align="center">
   <input style="background:#FCE898; border:#CCCCCC solid 1px; width:60px; padding-top:5px;" type="submit"  name="msubmit"  value="提 交" />
   　 
   <input style="background:#FCE898; border:#CCCCCC solid 1px; width:60px; padding-top:5px;" name="reset" type="reset" value="重置" />
</div>
 </form>
<div  style="padding:5px;"></div>
<div id="toppath">用户受限制范围列表管理</div>
<div style="padding:5px;"><a href="tracker_msg.inc.php?action=add&amp;table=iprange&amp;iprange=">添加受限制范围</a></div>
<table style=" float:left;" width="100%" border="0" cellpadding="3" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <th width="30%" align="center" valign="middle" bgcolor="#F0F0F0">ip范围</th>
    <th width="15%" align="center" valign="middle" bgcolor="#F0F0F0">修改</th>
    <th width="15%" align="center"valign="middle" bgcolor="#F0F0F0">删除</th>
  </tr>
<!--
EF;
foreach($trackerlist as $list)
{
print<<<EF
-->
  <tr>
    <td align="center" valign="middle"><a href="tracker_msg.inc.php?action=edit&amp;table=iprange&amp;iprange={$list[iprange]}">$list[iprange]</a></td>
	<td align="center" valign="middle"><a href="tracker_msg.inc.php?action=edit&amp;table=iprange&amp;iprange={$list[iprange]}">修改</a></td>
    <td align="center" valign="middle"><a href="tracker_msg.inc.php?action=delete&amp;table=iprange&amp;iprange={$list[iprange]}">删除</a></td>
  </tr>
<!--
EF;
}
print<<<EF
-->
</table>
<div id="toppath">ACS管理</div>
<div  style="padding:5px;"><a href="tracker_msg.inc.php?action=add&amp;table=ip&amp;ip=">添加ACS</a></div>

<table style=" float:left;" width="100%" border="0" cellpadding="3" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <th width="30%" align="center" valign="middle" bgcolor="#F0F0F0">目标ip:port</th>
    <th width="15%" align="center" valign="middle" bgcolor="#F0F0F0">修改</th>
    <th width="15%" align="center"valign="middle" bgcolor="#F0F0F0">删除</th>
  </tr>
<!--
EF;
foreach($trackerlist1 as $list1)
{
print<<<EF
-->
  <tr>
    <td align="center" valign="middle"><a href="tracker_msg.inc.php?action=edit&amp;table=ip&amp;ip={$list1[ip]}">$list1[ip]</a></td>
	<td align="center" valign="middle"><a href="tracker_msg.inc.php?action=edit&amp;table=ip&amp;ip={$list1[ip]}">修改</a></td>
    <td align="center" valign="middle"><a href="tracker_msg.inc.php?action=delete&amp;table=ip&amp;ip={$list1[ip]}">删除</a></td>
  </tr>
<!--
EF;
}
print<<<EF
-->
</table>

<!--
<div>
  <p align="center"><a href="tracker_msg.inc.php?action=list&amp;pages={$prepage}"  class="a2">上一页</a> <a href="tracker_msg.inc.php?action=list&amp;pages=1"  class="a3">1</a> <a href="tracker_msg.inc.php?action=list&amp;pages=2"  class="a1">2</a> <a href="tracker_msg.inc.php?action=userlist&amp;pages=3"  class="a1">3</a> <a href="tracker_msg.inc.php?action=list&amp;pages={$nextpage}" class="a2">下一页</a></p>
</div>
-->
</body>
</html>
<!--
EF;
}
?>
-->